
[#include "single/layout/layout02/layout.ftl"/]
[@htmlHead]

[/@htmlHead]

[@htmlBody]
<div class="row">
    <div class="col-xs-12">
        <ul class="nav nav-tabs ">
            <li>
                <a href="${base}/app/view/index">
                    系统列表
                </a>
            </li>
            [#if "add"==operateType]
                <li class="active"><a href="javascript:void(0)">系统增加</a></li>
            [#else ]
                <li class="active"><a href="javascript:void(0)">系统编辑</a></li>
            [/#if]

        </ul>
    </div>
</div>
<div class="row">
    <div class="col-xs-12">

        <form class="form-horizontal" action="${base}/app/view/update" method="post" id="editForm">
            <input type="hidden" name="id" value="${app.id}"/>

            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label "><span class="required">*</span>系统名称</label>

                <div class="col-xs-10 col-sm-4 ">
                    <input name="appName" value="${app.appName}" placeholder="系统名称" class="form-control input-large"/>

                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label "><span class="required">*</span>系统编码</label>

                <div class="col-xs-10 col-sm-4 ">
                    <input name="appKey" value="${app.appKey}" placeholder="英文名称"
                           class="form-control input-large"/>
                </div>
            </div>


            <div class="form-group">
                <div id="editAlert" class="" style="min-width:550px"></div>
                <label class="col-xs-10 col-sm-4 control-label ">是否启用</label>

                <div class="col-xs-10 col-sm-4 ">
                    <div class="btn-group" role="group">
                        [#if app.isEnabled=='0']
                            <button class="btn btn-sm" type="button" value="1">启用</button>
                            <button class="btn btn-success btn-sm" type="button" value="0">禁用</button>
                            <input type="hidden" name="isEnabled" value="0"/>
                        [#else]
                            <button class="btn btn-success btn-sm" type="button" value="1">启用</button>
                            <button class="btn btn-sm" type="button" value="0">禁用</button>
                            <input type="hidden" name="isEnabled" value="1"/>
                        [/#if]
                    </div>

                </div>
            </div>
            <div class="form-group">
                <label class="col-xs-10 col-sm-4 control-label ">系统描述</label>

                <div class="col-xs-10 col-sm-4 ">
                    <textarea class="form-control input-large" name="description" id="description"
                              style="text-align: left;">${app.description}</textarea>
                </div>
            </div>

            <div class="form-group">
                <label class=" col-xs-10 col-sm-4  control-label"></label>

                <div class="col-xs-10 col-sm-4" align="center">
                    <input type="button" class="btn btn-info btn-sm" value="确定" onclick="doSubmit('${operateType}')"/>
                    <input type="button" onclick="tools.goto('${base}/app/view/index')" class="btn btn-cancle btn-sm"
                           value="返回"/>
                </div>
            </div>
        </form>

    </div>
</div>
[/@htmlBody]

[@htmlFoot]
    [#include "common/validate.ftl"/]
<script src="${jpath}/assets/public/plugins/dialog/bootbox.js" type="text/javascript"></script>
<script src="${base}/plugins/single/js/module/app/app.js" type="text/javascript"></script>
<script type="text/javascript">


</script>


[/@htmlFoot]